package com.zkjl.protect_business.dto;

import com.zkjl.protect_business.entity.BusinessField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel(description = "政治考核实体")
public class AssessmentPoliticalDTO {

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "考核类型")
    private String type;

    @ApiModelProperty(value = "考核时间")
    private Long assessmentTime;

    @ApiModelProperty(value = "考核说明")
    private String describe;

    @ApiModelProperty(notes = "参与单位")
    private List<String> orgIds;

    @ApiModelProperty(notes = "包含字段")
    private List<BusinessField> fields;

    @ApiModelProperty(value = "模板id")
    @Field(name = "template_id")
    private String templateId;

}
